<template>
  <div class="skill">
    <div class="txt">
      <div class="title">
        {{ item.title }}
      </div>
      <div class="bottom">
        <div class="time">{{ item.created_at | getTime }}</div>
        <div class="read">
          <i class="iconfont iconicon_liulanliang"></i>{{ item.read }}
        </div>
        <div class="star">
          <i class="iconfont iconbtn_dianzan_small_nor"></i>{{ item.star }}
        </div>
      </div>
    </div>
    <div class="picture">
      <img :src="baseURL + item.cover" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  props: {
    item: {
      type: Object,
      require: true
    }
  },
  data () {
    return {
      baseURL: process.env.VUE_APP_BASEURL
    }
  }
}
</script>
<style lang="less" scoped>
.skill {
  display: flex;
  padding: 15px 0;
  .txt {
    flex: 1;
    line-height: 1.15em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .title {
      font-size: 16px;
      font-weight: 500;
      color: #181a39;
    }
    .bottom {
      display: flex;
      align-items: center;
      font-size: 12px;
      color: #b4b4bd;
      .time {
        flex: 1;
      }
      .read {
        margin-right: 20px;
      }
      .iconfont {
        margin-right: 6px;
      }
    }
  }
  .picture {
    margin-left: 20px;
    img {
      width: 113px;
      height: 75px;
    }
  }
}
</style>
